.class final Lcom/baidu/crabsdk/a/l;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/util/Printer;


# instance fields
.field private final aj:Landroid/content/Context;

.field private aw:J

.field private ax:J

.field private ay:Lcom/baidu/crabsdk/a/i;

.field private az:Z


# direct methods
.method public constructor <init>(Lcom/baidu/crabsdk/a/i;Landroid/content/Context;)V
    .locals 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/baidu/crabsdk/a/l;->aw:J

    iput-wide v0, p0, Lcom/baidu/crabsdk/a/l;->ax:J

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/baidu/crabsdk/a/l;->ay:Lcom/baidu/crabsdk/a/i;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/baidu/crabsdk/a/l;->az:Z

    iput-object p1, p0, Lcom/baidu/crabsdk/a/l;->ay:Lcom/baidu/crabsdk/a/i;

    iput-object p2, p0, Lcom/baidu/crabsdk/a/l;->aj:Landroid/content/Context;

    return-void
.end method

.method static synthetic a(Lcom/baidu/crabsdk/a/l;)Lcom/baidu/crabsdk/a/i;
    .locals 0

    iget-object p0, p0, Lcom/baidu/crabsdk/a/l;->ay:Lcom/baidu/crabsdk/a/i;

    return-object p0
.end method


# virtual methods
.method public final println(Ljava/lang/String;)V
    .locals 11

    invoke-static {}, Landroid/os/Debug;->isDebuggerConnected()Z

    move-result p1

    if-eqz p1, :cond_0

    return-void

    :cond_0
    iget-boolean p1, p0, Lcom/baidu/crabsdk/a/l;->az:Z

    const/4 v0, 0x1

    if-nez p1, :cond_2

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    iput-wide v1, p0, Lcom/baidu/crabsdk/a/l;->aw:J

    invoke-static {}, Landroid/os/SystemClock;->currentThreadTimeMillis()J

    move-result-wide v1

    iput-wide v1, p0, Lcom/baidu/crabsdk/a/l;->ax:J

    iput-boolean v0, p0, Lcom/baidu/crabsdk/a/l;->az:Z

    iget-object p1, p0, Lcom/baidu/crabsdk/a/l;->aj:Landroid/content/Context;

    invoke-static {p1}, Lcom/baidu/crabsdk/a/c;->c(Landroid/content/Context;)Lcom/baidu/crabsdk/a/c;

    move-result-object p1

    iget-object p1, p1, Lcom/baidu/crabsdk/a/c;->ah:Lcom/baidu/crabsdk/a/p;

    if-eqz p1, :cond_1

    iget-object p1, p0, Lcom/baidu/crabsdk/a/l;->aj:Landroid/content/Context;

    invoke-static {p1}, Lcom/baidu/crabsdk/a/c;->c(Landroid/content/Context;)Lcom/baidu/crabsdk/a/c;

    move-result-object p1

    iget-object p1, p1, Lcom/baidu/crabsdk/a/c;->ah:Lcom/baidu/crabsdk/a/p;

    invoke-virtual {p1}, Lcom/baidu/crabsdk/a/n;->start()V

    :cond_1
    return-void

    :cond_2
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    const/4 p1, 0x0

    iput-boolean p1, p0, Lcom/baidu/crabsdk/a/l;->az:Z

    iget-wide v1, p0, Lcom/baidu/crabsdk/a/l;->aw:J

    sub-long v1, v4, v1

    sget v3, Lcom/baidu/crabsdk/a/a;->U:I

    int-to-long v6, v3

    cmp-long v3, v1, v6

    if-ltz v3, :cond_3

    goto :goto_0

    :cond_3
    const/4 v0, 0x0

    :goto_0
    if-eqz v0, :cond_4

    new-instance p1, Ljava/lang/StringBuilder;

    const-string v0, "BlockCanary ^^ notifyBlockEvent: "

    invoke-direct {p1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v0, "-"

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v0, p0, Lcom/baidu/crabsdk/a/l;->aw:J

    invoke-virtual {p1, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v0, "="

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v0, p0, Lcom/baidu/crabsdk/a/l;->aw:J

    sub-long v0, v4, v0

    invoke-virtual {p1, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v0, " >= "

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget v0, Lcom/baidu/crabsdk/a/a;->U:I

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/baidu/crabsdk/c/a;->s(Ljava/lang/String;)I

    iget-wide v2, p0, Lcom/baidu/crabsdk/a/l;->aw:J

    iget-wide v6, p0, Lcom/baidu/crabsdk/a/l;->ax:J

    invoke-static {}, Landroid/os/SystemClock;->currentThreadTimeMillis()J

    move-result-wide v8

    invoke-static {}, Lcom/baidu/crabsdk/a/j;->m()Landroid/os/Handler;

    move-result-object p1

    new-instance v10, Lcom/baidu/crabsdk/a/m;

    move-object v0, v10

    move-object v1, p0

    invoke-direct/range {v0 .. v9}, Lcom/baidu/crabsdk/a/m;-><init>(Lcom/baidu/crabsdk/a/l;JJJJ)V

    invoke-virtual {p1, v10}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_4
    iget-object p1, p0, Lcom/baidu/crabsdk/a/l;->aj:Landroid/content/Context;

    invoke-static {p1}, Lcom/baidu/crabsdk/a/c;->c(Landroid/content/Context;)Lcom/baidu/crabsdk/a/c;

    move-result-object p1

    iget-object p1, p1, Lcom/baidu/crabsdk/a/c;->ah:Lcom/baidu/crabsdk/a/p;

    if-eqz p1, :cond_5

    iget-object p1, p0, Lcom/baidu/crabsdk/a/l;->aj:Landroid/content/Context;

    invoke-static {p1}, Lcom/baidu/crabsdk/a/c;->c(Landroid/content/Context;)Lcom/baidu/crabsdk/a/c;

    move-result-object p1

    iget-object p1, p1, Lcom/baidu/crabsdk/a/c;->ah:Lcom/baidu/crabsdk/a/p;

    invoke-virtual {p1}, Lcom/baidu/crabsdk/a/n;->stop()V

    :cond_5
    return-void
.end method
